/**
 * Copyright (c) Enalean, 2017. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */
@import 'codemirror/lib/codemirror';
@import 'codemirror/addon/hint/show-hint';

$expert-query-area-height: 75px;

.cross-tracker-expert-content {
    display: flex;
    margin: 0 0 $tlp-spacing;
}

.cross-tracker-expert-content-query-allowed-fields.tlp-select {
    height: $expert-query-area-height;
}

.cross-tracker-expert-content-query {
    flex: 1 1 auto;
    margin: 0 $tlp-half-spacing 0 0;

    > .CodeMirror {
        height: $expert-query-area-height;
        transition: border linear .2s, box-shadow linear .2s;
        border: 1px solid #cccccc;
        border-radius: 4px;

        &.CodeMirror-focused {
            border-color: rgba(82, 168, 236, .8);
            outline: 0;
            box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(82, 168, 236, .6);
        }

        pre {
            padding: 0 6px;

            &.CodeMirror-placeholder {
                color: #999999;
            }
        }
    }
}
